/*
 * Block.h
 *
 *  Created on: Apr 19, 2011
 *      Author: dave
 */

#ifndef BLOCK_H_
#define BLOCK_H_

#include <iostream>

#include "Types.h"

using namespace std;

class Block {
	protected:
		int number;
		byte* data;
		bool bigEndian;
		bool isBigEndian();

	public:
		Block(int, byte*);
		~Block();
		int getNumber();
		byte readByte(int);
		short readShort(int);
		ushort readUShort(int);
		long readLong(int);
};

#endif /* BLOCK_H_ */
